<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改发货单')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-parcels-edit" th:object="${billOfParcels}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">发货单据编码：</label>
            <div class="col-sm-8">
                <input name="billOfParcelsCode" th:field="*{billOfParcelsCode}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">来源：</label>
            <div class="col-sm-8">
                <input name="sourceId" th:field="*{sourceId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">供应商编码：</label>
            <div class="col-sm-8">
                <input name="supplierCode" th:field="*{supplierCode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">仓库编码：</label>
            <div class="col-sm-8">
                <input name="warehouseCode" th:field="*{warehouseCode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">1待取件,2配送中,3已签收,4已入库：</label>
            <div class="col-sm-8">
                <input name="state" th:field="*{state}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">仓储费：</label>
            <div class="col-sm-8">
                <input name="storagePrice" th:field="*{storagePrice}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">商品分类id：</label>
            <div class="col-sm-8">
                <input name="categoryId" th:field="*{categoryId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">商品总数量：</label>
            <div class="col-sm-8">
                <input name="goodsTotalNum" th:field="*{goodsTotalNum}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">商品总体积：</label>
            <div class="col-sm-8">
                <input name="goodsVolume" th:field="*{goodsVolume}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">商品总重量：</label>
            <div class="col-sm-8">
                <input name="goodsWeight" th:field="*{goodsWeight}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">货箱总数：</label>
            <div class="col-sm-8">
                <input name="goodsBoxTotalNum" th:field="*{goodsBoxTotalNum}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">配送费：</label>
            <div class="col-sm-8">
                <input name="deliveryPrice" th:field="*{deliveryPrice}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">取货码：</label>
            <div class="col-sm-8">
                <input name="pickupCode" th:field="*{pickupCode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">取件结束时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="pickupEndTime" th:value="${#dates.format(billOfParcels.pickupEndTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">取件地址：</label>
            <div class="col-sm-8">
                <input name="pickupAddress" th:field="*{pickupAddress}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">取件开始时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="pickupStartTime" th:value="${#dates.format(billOfParcels.pickupStartTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">创建人：</label>
            <div class="col-sm-8">
                <input name="createUser" th:field="*{createUser}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">创建时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="createDate" th:value="${#dates.format(billOfParcels.createDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">更新人：</label>
            <div class="col-sm-8">
                <input name="updateUser" th:field="*{updateUser}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">更新时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input name="updateDate" th:value="${#dates.format(billOfParcels.updateDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">删除字段：0,删除 1：正常：</label>
            <div class="col-sm-8">
                <input name="isDelete" th:field="*{isDelete}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "system/parcels";
    $("#form-parcels-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-parcels-edit').serialize());
        }
    }

    $("input[name='pickupEndTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='pickupStartTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='createDate']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='updateDate']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>